using System.Collections.Generic;
using Newtonsoft.Json;

namespace Betfair.Api
{
    public sealed class ExchangePrice
    {
        public ExchangePrice(IList<PriceSize> back, IList<PriceSize> lay, IList<PriceSize> traded)
        {
            Back = back;
            Lay = lay;
            Traded = traded;
        }

        [JsonProperty("availableToBack")]
        public IList<PriceSize> Back { get; private set; }

        [JsonProperty("availableToLay")]
        public IList<PriceSize> Lay { get; private set; }

        [JsonProperty("tradedVolume")]
        public IList<PriceSize> Traded { get; private set; }
    }
}